package com.jrx.anytxn.reporting.job.reportingFile.step;

import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.reporting.service.IReportingFileService;
import com.jrx.anytxn.transaction.entity.TlLoanStagingMapping;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StagingFileProcessor implements ItemProcessor<TlLoanStagingMapping, String> {

    @Autowired
    private IReportingFileService reportingFileService;

    @Override
    public String process(TlLoanStagingMapping item){

        return reportingFileService.createStagingFileMessage(item);

    }

}
